import 'package:flutter_module/model/navi_data_article.dart';
import 'package:json_annotation/json_annotation.dart';

part 'navi_info.g.dart';

@JsonSerializable()
class NaviInfo {
  String? name;
  List<NaviDataArticle>? articles;
  int? cid;

  NaviInfo({this.name, this.articles, this.cid});

  factory NaviInfo.fromJson(Map<String, dynamic> srcJson) =>
      _$NaviInfoFromJson(srcJson);

  Map<String, dynamic> toJson() => _$NaviInfoToJson(this);
}